#ifndef CZENSOUND_H
#define CZENSOUND_H

#include "ZenEngine.h"
#include <dmusici.h>
#include <dshow.h>


class CZenSound
{
public:
	CZenSound();
	~CZenSound();
	HRESULT InitSound(HWND hWnd);
	HRESULT PlayBackgroundMusic(char* file);
	void StopBackgroundMusic();
	void ShutdownSound();
	void CheckStatusBackgroundMusic();
	void TogglePauseBackgroundMusic();
	void SetVolumeBackgroundMusic(int VolumePercentage);
	HRESULT LoadZenSound(char* strFileName);
	HRESULT PlayZenSound();
	bool isPlayingZenSound();
private:
	bool						bFilterActive;
	IDirectMusicPerformance8 *	m_pPerformance;
	IDirectMusicSegment8 *		m_pSound;
	IGraphBuilder *				m_pGraph;
	IMediaControl *				m_pMediaControl;
	IMediaEvent *				m_pEvent;
	IMediaSeeking *				m_pSeeking;
	IBasicAudio *				m_pBasicAudio;
	IDirectMusicLoader8 *		m_pMusicLoader;

};

#endif